package com.schoolai.feign.study;

import com.schoolai.entity.SchoolStudyEnglishWorkTask;
import com.schoolai.util.base.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Copyright(C),2019-2025，XX公司
 * FileName:IFeignSchoolStudyEnglishWorkTaskController
 * Author:bobby
 * 创建时间：2025/9/30 10:18
 * Description:openfeign记忆单词接口
 * History:
 * <auth>        <time>       <version>       <desc>
 * 作者          修改时间       版本号         描述
 */
@FeignClient(value="school-study-service", path = "/study")
@Tag(name = "任务记忆单词任务", description = "任务记忆单词任务")
public interface IFeignSchoolStudyEnglishWorkTaskController {
    /**
     * 通过记忆单词任务id查询单词列表
     * @param id
     * @return
     */
    @Operation(summary = "查询任务记忆单词任务")
    @GetMapping ("/api/feign/SchoolStudyEnglishWorkTask/{id}")
    public SchoolStudyEnglishWorkTask getTaskAndListById(
            @Parameter(description = "任务ID", required = true, example = "1")
            @PathVariable("id") String id);
}
